#include<stdio.h>
int main()
{
	creat_socket();
	broadcast();
	ret=pthread_create(&udp_rcv,0,udp_msg_process,NULL);
	if(ret !=0)
	{
		perror("pthread_create");
		exit(-1);
	}
   	 ret=pthread_create(&key_scan,0,key_scan__process,NULL);
        if(ret !=0)
        {
                perror("pthread_create");
                exit(-1);
        }	
	ret=pthread_create(&tcp_send,0,tcp_send_process,NULL);
        if(ret !=0)
        {
                perror("pthread_create");
                exit(-1);
        }
